package com.loong.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.loong.entity.Student;
import com.loong.vo.StudentVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    List<StudentVO> list(@Param("name") String name, @Param("degree") Short degree, @Param("clazzId") Integer clazzId);

    @MapKey("name")
    List<Map<String, Object>> countDegreeData();
}
